<!DOCTYPE HTML>
<html>
<head>
    <title><?php echo $title_for_layout; ?></title>
    <script type="text/javascript"><!--//--><![CDATA[//><!--
        var controller = null; var action = null; var gs_localize = '<?php echo $culture; ?>'; var gs_path = '<?php echo base_url(); ?>'; if (gs_path.substr((gs_path.length - 1), 1) == '/') { gs_path = gs_path.substr(0, gs_path.length - 1); } var now = new Date(<?php echo @date("Y", strtotime($time_adjust)); ?>, <?php echo (intval(@date("m", strtotime($time_adjust))) - 1); ?>, <?php echo @date("d", strtotime($time_adjust)); ?>, <?php echo @date("H", strtotime($time_adjust)); ?>, <?php echo @date("i", strtotime($time_adjust)); ?>, <?php echo @date("s", strtotime($time_adjust)); ?>); var gs_app = '<?php echo base64_encode($sessid); ?>'; var sessid = null; var debug = null; var gs_permission_c = null; var gs_permission_r = null; var gs_permission_u = null; var gs_permission_d = null; var gs_permission_pr = null; var gs_permission_dw = null; var gs_permission_up = null;
		var gs_msg_row_unselected = 'Please Select Row';
    //--><!]]></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery-ui-1.8.18.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/fg.menu.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>vendor/tiny_mce/tiny_mce.js"></script>
    <script type='text/javascript' src='<?php echo base_url(); ?>vendor/tinymce-thumbnail-gallery/includes/colorbox/jquery.colorbox-min.js'></script>
    
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery.flot.min.js"></script>
    <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="<?php echo base_url(); ?>content/js/excanvas.min.js"></script><![endif]-->
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery.flot.crosshair.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery.flot.pie.min.js"></script>

    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery.tipTip.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/jquery.zeke.js"></script>
    
	<script type="text/javascript" src="<?php echo base_url(); ?>content/js/datagrid-detailview.js"></script>

    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/global.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>content/js/lov.js"></script>
	
    <link rel="shortcut icon" href="<?php echo base_url(); ?>content/images/favicon.ico" />
    <link href="<?php echo base_url(); ?>content/css/fg.menu.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>content/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>content/css/gray/easyui.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>content/css/icon.css" rel="stylesheet" type="text/css" />
    
    <link href="<?php echo base_url(); ?>content/css/tipTip.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>content/css/admin.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>vendor/tinymce-thumbnail-gallery/includes/colorbox/colorbox.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
	.menu_hidden { position:absolute; top:0; left:-9999px; width:1px; height:1px; overflow:hidden; }
	.fg-button.ui-state-loading .ui-icon { background: url(spinner_bar.gif) no-repeat 0 0; }
	</style>
	<!-- style exceptions for IE 6 -->
	<!--[if IE]>
	<style type="text/css">
		.fg-menu-ipod .fg-menu li { width: 95%; }
		.fg-menu-ipod .ui-widget-content { border:0; }
	</style>
	<![endif]-->
</head>
<body>
    <div id="content_block" style="background-color:#999; filter:alpha(opacity=100); opacity: 1; -moz-opacity: 1;"></div><div id="content_loading" style="display:none;"><img src="<?php echo base_url(); ?>content/images/spinner.gif" /> Loading.. </div><script type="text/javascript">try { var winWidth = document.all ? document.body.clientWidth : window.innerWidth } catch (er) { winWidth = screen.width } try { var winHeight = document.all ? document.body.clientHeight : window.innerHeight } catch (er) { winHeight = screen.height } $('#content_block').css('width', winWidth + 'px').css('height', winHeight + 'px'); var ln_left = (winWidth - 250) / 2; if (ln_left < 0) ln_left = 0; var ln_top = (winHeight - 350) / 2; if (ln_top < 0) ln_top = 0; $('#content_loading').css('left', ln_left + 'px').css('top', ln_top + 'px').hide(); $('#content_loading').show();</script>
    <div id="content_debug" style="display:none;"></div>
    <div id="content_config">
        <input type="checkbox" id="chk_debug" <?php echo ($dev == 1 ? " checked=\"checked\"" : ""); ?> />
    </div>
    
    <div id="app_header">
    	<div class="left">&nbsp;</div>
        <div class="right">&nbsp;</div>
    </div>
    <div id="app_navigation" class="ui-widget-header">
        <div class="left">
            <div class="button_set">
                <a id="btn_home" class="easyui-linkbutton" plain="true" iconCls="icon-home" onclick="loadPage(Base64Decode('<?php echo base64_encode('/app/dashboard');?>'));" title="Dashboard"></a>
                <a id="menu" class="easyui-menubutton" plain="true" iconCls="icon-menu">Menu</a>
                <div class="menu_hidden" style="position:fixed;">
                    <ul>
                        <?php if ($dev == 1) { ?>
                        <li><a href="#">Developer</a>
                            <ul>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/itrole/index'); ?>')); return false;">Manage Role</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/ituserid/index'); ?>')); return false;">Manage User</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/itmenu/index'); ?>')); return false;">Manage Menu</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/app/api'); ?>')); return false;">Developer API</a></li>
                            </ul>
                        </li>
                        <?php } ?>
                        <!--<li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/adm_pages/index'); ?>')); return false;">Menu and Pages</a></li>-->
                        <li><a href="#">Files</a>
                        	<ul>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/jalan/index'); ?>')); return false;">Master Jalan</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/usulan/index'); ?>')); return false;">Usulan Perbaikan Jalan</a></li>
                                <!--<li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/bangunan/index'); ?>')); return false;">Master Bangunan</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/usulan_bangunan/index'); ?>')); return false;">Usulan Perbaikan Bangunan</a></li>-->
                            </ul>
                        </li>
                        <li><a href="#">Report</a>
                        	<ul>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/report/daftar_jalan1'); ?>')); return false;">Daftar Jalan (Page 1)</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/report/daftar_jalan2'); ?>')); return false;">Daftar Jalan (Page 2)</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/report/daftar_usulan_jalan'); ?>')); return false;">Daftar Usulan Jalan</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/report/daftar_usulan_jalan_rekom'); ?>')); return false;">Daftar Usulan Jalan With Rekom</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Reference</a>
                        	<ul>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/sw_kecamatan/index'); ?>')); return false;">Kecamatan</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/sw_drainase/index'); ?>')); return false;">Drainase</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/sw_fungsi/index'); ?>')); return false;">Fungsi</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/sw_jembatan/index'); ?>')); return false;">Jembatan</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/sw_pengerasan/index'); ?>')); return false;">Pengerasan</a></li>
                                <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/sw_trotoar/index'); ?>')); return false;">Trotoar</a></li>
							</ul>
                        </li>
                        <!--<li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/adm_media_library/index'); ?>')); return false;">Media Library</a></li>
                        <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/adm_quickmessage/index'); ?>')); return false;">Inbox Message</a></li>
                        <li><a href="#" onclick="loadPage(Base64Decode('<?php echo base64_encode('/adm_blogsetting/index'); ?>')); return false;">Site Setting</a></li>-->
                        <!--<li><a href="#">Users</a></li>
                        <li><a href="#">Tools</a>
                        	<ul>
                                <li><a href="#">Export</a></li>
                                <li><a href="#">Import</a></li>
                                <li><a href="#">Statistics</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Settings</a></li>-->
                    </ul>
                </div>
                
                <!--<a id="btn_bookmark" class="easyui-menubutton" plain="true" iconCls="icon-star">Bookmark</a>
                <?php if($dev == 1) { ?><a id="btn_goto" class="easyui-linkbutton" plain="true" iconCls="icon-next">Go To Page</a><?php } ?>-->
            </div>
        </div>
        <div class="right">
            <div class="button_set">
            	<?php echo 'Welcome, '.$arr_session['user_name']; ?>
                <!--<a id="btn_sysmessage" class="easyui-linkbutton" plain="true" iconCls="icon-mail" title="Mailbox"></a>
                <?php if($dev == 1) { ?><a id="btn_sysdebug" class="easyui-linkbutton" plain="true" iconCls="icon-bug" title="Debuging Application [Developer Only]"></a><?php } ?>
                <a id="btn_sysconfig" class="easyui-linkbutton" plain="true" iconCls="icon-gears" title="Configuration"></a>-->
                <a id="btn_syslogout" class="easyui-linkbutton" plain="true" iconCls="icon-turnoff" title="Logout">Logout</a>
            </div>
        </div>
    </div>
    <div id="container"><?php if(isset($content_for_layout)) echo $content_for_layout; ?></div>
    <div id="app_footer">
        <p class="left">Copyright &copy; 2012 <?php echo $title; ?>.</p>
        <p class="right">Design By <a href="http://gurningsoft.com" target="_new">Gurningsoft</a></p>
    </div>
    <iframe id="if_submit" name="if_submit" style="display:none;"></iframe>
    <iframe id="if_download" name="if_download" style="display:none;"></iframe>
</body>
</html>